<?php
	require_once('NumberGenerator.php');
class GraphObserver implements SplObserver {

	public function update(SplSubject $subject)
	{
		$count = $subject->getState();
		echo("state => ");
		for($i=0; $i < $count; $i++) {
			echo("#");
		}
		echo("<br/>\n");
	}
} //class end
?>